/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sampleBean;

import java.util.Date;
import java.util.List;
import javax.ejb.Remote;
import sampleEntity.Account;
import sampleEntity.Bill;
import sampleEntity.Customers;

/**
 *
 * @author ASUS K43E
 */
@Remote
public interface CusSessionBeanRemote {

    boolean checkLogin(String username, String password);

    int checkRole(String username);

    int checkRank(String username);

    List showRoom(Date date);

    List showRoomList();

    boolean addNewBook(String roomId, Date date, String username);

    List findGoldRoom();

    List findBookRoom(String username, Date date);

    boolean cancelBooking(String roomId, Date date);

    List searchCus(String name);

    boolean blockAndLost(String username, boolean block, boolean lost);

    List checkNew();

    boolean updateCard(String username, String cardId, int point, String rank, boolean block, boolean lost);

    List findBlock();

    List findLost();

    List findbyRank(String rank);

    boolean approve(String username);

    boolean disapprove(String username);

    boolean checkRoom(String room, Date date);

    List findDob();

    List productId();

    List listRoom();

    boolean addProduct(String username, Date date, String productId, int quantity);

    List findBillItem(String username, Date date);

    Customers findCus(String username);

    Bill findBill(String username, Date date);

    boolean addRoom(String username, String roomId, Date date);

    boolean printBill(String username, int point, String rank);

    boolean deletePro(String username, Date date, String productId);

    boolean checkBlock(String username);

    boolean editInfo(String username, String job, String add, String phone, String bankAcc, String bankName);

    boolean changePass(String username, String newPass);

    List viewHistory(String username);

    boolean register(String username, String password, String fullname, String address, String phone, String email);

    boolean checkUser(String username);

    boolean checkID(String id);

    boolean checkEmail(String email);

    boolean checkPass(String username, String password);

    boolean addCus(String username, String id, Date dateOfBirth, String job, String bankAcc, String bankName, String gender);
}
